﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;
using System.Collections;
using log4net;

namespace ChuanYe.Common
{
    public static class Utils {


        public static ILog GetLogger()
        {
            return log4net.LogManager.GetLogger("MyLogger");
        }

        public static ILog GetLogger(string name)
        {
            return log4net.LogManager.GetLogger(name);
        }

        public static ILog GetLogger(Type type)
        {
            return log4net.LogManager.GetLogger(type);
        }

        public static ILog GetPacketLogger()
        {
            return GetLogger("packet");
        }

        public static ILog GetCommLogger()
        {
            return GetLogger("comm");
        }
      
    }
}
